/*
 * @Author: HuRrongChao zhuangpiao@qingmutec.com
 * @Date: 2024-10-09 14:16:43
 * @LastEditors: HuRrongChao
 * @LastEditTime: 2025-01-09 16:29:55
 */
import './assets/fonts/style.css'
import '@/styles/common.scss'
import installElementPlus from './plugins/element'
import { createApp } from 'vue'
import App from './App.vue'
// 引入路由
import router from './router'
// 引入store
import store from './store'
// 引入指令
import lazy from './directives/lazy.js'
// 引入消息组件
import Message from './components/message/index.js'

const app = createApp(App).use(router).use(store)
installElementPlus(app)

// 自定义vue的全局属性
app.config.globalProperties.$message = Message

app.mount('#app')

// 注册指令
app.directive('lazy', lazy)